package com.yx.elastic.elasticcm.controller.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by chenzp on 18-7-27.
 */
@RestController
public class IndexController {

//    /**
//     * 欢迎页面
//     * @param modelAndView
//     * @return
//     */
//    @RequestMapping("/welcome")
//    public ModelAndView welcome(ModelAndView modelAndView){
//        modelAndView.setViewName("welcome");
//        return modelAndView;
//    }

    /**
     * 首页
     * @param modelAndView
     * @return
     */
    @RequestMapping("/elasticsearch")
    public ModelAndView index(ModelAndView modelAndView){
        modelAndView.setViewName("index");
        return modelAndView;
    }
}
